/* 重置样式和基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #121212; /* 暗色背景 */
  color: #e0e0e0;           /* 浅灰文字 */
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* 页面影院氛围感的灯光效果 */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* 背景渐变光晕效果 */
body::after {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 30%, rgba(255,0,0,0.15), transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(0,128,255,0.15), transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: glowMove 15s infinite alternate;
}

@keyframes glowMove {
  0% { transform: translate(0,0); }
  100% { transform: translate(50px, -50px); }
}

/* 导航栏 */
.navbar {
  background: rgba(30, 30, 30, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.navbar .logo {
  color: #ff4d4d;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(255,77,77,0.7);
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navbar .nav-links li a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s, text-shadow 0.3s;
}

.navbar .nav-links li a:hover {
  color: #ff4d4d;
  text-shadow: 0 0 8px rgba(255,77,77,0.8);
}

/* 通用提示样式 */
.loading {
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
  color: #aaa;
}

.error {
  background-color: rgba(178, 34, 34, 0.2);
  color: #ff6b6b;
  padding: 1rem;
  border-radius: 5px;
  margin: 1rem 0;
  border: 1px solid rgba(255, 107, 107, 0.4);
}

.success {
  background-color: rgba(40, 167, 69, 0.2);
  color: #4caf50;
  padding: 1rem;
  border-radius: 5px;
  margin: 1rem 0;
  border: 1px solid rgba(76, 175, 80, 0.4);
}
